package com.hckj.jianzhijia.popupwindows;

import android.content.Context;
import android.view.View;

/**
 * Created by 赵奇隆 on 2015-12-02.
 */
public class GetLicensePicPopWin  extends  ListPopupWindow  {


    public static final String[] data = {"相册","拍照"};
    private PopWinInterface popWinInterface;
    private int listPosition;

    public GetLicensePicPopWin(Context context,PopWinInterface popWinInterface, View parentView, View anchorView) {
        super(context, parentView, anchorView,data);
        this.popWinInterface = popWinInterface;
    }


    @Override
    public void getListItem(int position, String itemName) {
        if(position==0){
            popWinInterface.modifyFromAlbumLicense(listPosition);
        }else{
            popWinInterface.modifyFromPhotoLicense(listPosition);
        }
    }

    public interface PopWinInterface {
        public void modifyFromAlbumLicense(int position);
        public void modifyFromPhotoLicense(int position);
    }





}
